package com.lyf.dao;

import java.util.List;

import com.lyf.dao.base.BaseDao;
import com.lyf.pojo.Task;

public class TaskDao extends BaseDao<Task,String>{

	public List<Task> findAllByGoalId(String id) {
		String hql = "from Task where t_goal_id = ? order by t_createTime desc";
		return findByAllHql(hql, id); 
	}

	public List<Task> findByEmployeeId(String employeeid,String projectid) {
		String hql = "from Task where t_employee_id = ? and t_project_id = ? order by t_createTime desc";
		return findByAllHql(hql, employeeid,projectid);
	}

}
